#pragma once


#define DIE(num) do { exit(num);}while(0)
#define CONV(name) (struct sockaddr *)(name) 

enum EXITERROR
{
    OK=0,
    BIND_ERROR,
    SOCKET_ERROR,
    LISTEN_ERROR,
    CONNECT_ERROR,
    RECV_ERROR
};